package com.xiaodu.acer.phoneplay.presenter.contract;

import com.xiaodu.acer.phoneplay.bean.AppInfo;
import com.xiaodu.acer.phoneplay.common.apkparset.AndroidApk;

import java.util.List;

import io.reactivex.Observable;
import library.base.BaseModel;
import library.base.BaseView;
import zlc.season.rxdownload2.RxDownload;
import zlc.season.rxdownload2.entity.DownloadRecord;


public interface AppManagerContract {


    interface View extends BaseView {

        void showDownloading(List<DownloadRecord> downloadRecords);

        void showApps(List<AndroidApk> apps);

        void showUpdateApps(List<AppInfo> appInfos);


    }

    interface Model extends BaseModel {


        Observable<List<DownloadRecord>> getDownloadRecord();

        //通过这种方式传给其他页面
        RxDownload getRxDownload();

        Observable<List<AndroidApk>> getLocalApks();

        Observable<List<AndroidApk>> getInstalledApps();


    }


}
